package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.PerformanceEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description: 业绩目标
 * @Author: hongxiao
 * @date: 2019-01-26 10:06
 * @since v1.0
 */
public interface PerformanceDao {
    Integer insert(PerformanceEntity performance);
    Integer update(PerformanceEntity performance);

    void insertBatch(List<PerformanceEntity> performanceList);

    Integer deleteByKey(@Param("key") Long key,@Param("corpid") String corpid);
    PerformanceEntity getByKey (@Param("key") Long key,@Param("corpid") String corpid);


    List<PerformanceEntity>  findEntitys(@Param("param")Map<String ,Object>  param);
    Integer getEntitysCount(@Param("param")Map<String ,Object> param);
}
